FROM openjdk:17.0.2

MAINTAINER bddiudiu@gmail.com

ENV TZ=Asia/Shanghai

ENV JAVA_OPTS="-Xms512m -Xmx1024m -Djava.security.egd=file:/dev/./urandom"

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /app

WORKDIR /app

# 替换为实际端口
EXPOSE 8070

COPY ./app.jar ./

CMD java $JAVA_OPTS -jar app.jar
